package com.wit.witmg.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author bob
 * @since 2024-12-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="TProdmater对象", description="产品配料表 BOM表")
public class TProdmater implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "产品编码ERP")
    private String bn;
    private String na;//产品名称

    @ApiModelProperty(value = "型号规格")
    private String size;
    private String unit;//单位

    private Double cost;//理论单价

    private String mlist;//配料清单[材料代码、材料名称、材料型号规格、单只用量(*数量quant=应领用量)、单位] json

    private Date date;

    private Double weight;//重量
}
